import { GetGoodsListData  } from '@/api'
const state = {
  goodsList:{}
}
const mutations = {
  GETGOODSLIST(state,data){
    state.goodsList = data
  }
}
const actions = {
  async getGoodsList({commit},params){
    let result = await GetGoodsListData (params)
    console.log(result.data)
    commit('GETGOODSLIST',result.data)
  }
}
const getters = {
}
export default{
  namespaced:true,
  state,
  mutations,
  actions,
  getters
}